<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>INTI3E Prototype</title>
		<link rel="stylesheet" href="layout.css" type="text/css" />
		<%
		session = request.getSession();
		if( session.getAttribute( "logged" ) == "true" ){
			out.println("<meta http-equiv='REFRESH' content='0;url=SensorServlet?page=home'>");
		}
		%>
		
		<jsp:include page="includes/initialize.jsp"  flush="true" />  
	</head>
	<body>
		&nbsp;
		<div id ="wrapper">
			<div class="wrapper-login">
				<% 
				String succeeded = (String) request.getAttribute( "succeeded" );
				if( succeeded != null ){
					out.println( "<font color='red'>" + succeeded + "</font>" );
				}
				%>
				<div id="login">
					<form method="post" action="UserServlet?page=login">
						<label id="loginLeft" for="naam">Gebruikersnaam</label>
							<input id="loginRight" type="text" name="gebruikersnaam" />
						<br/> <br/>
						<label id="loginLeft" for="ww">Wachtwoord</label>
							<input id="loginRight" type="password" name="wachtwoord" />
						<br/> <br/>
						<input type="submit" value="Inloggen" />
					</form>
				</div>
			</div>
		</div>
		<jsp:include page="includes/footer.jsp"  flush="true" />
	</body>
</html>